# Install GDT

.globl __gdt_install
//.extern gp 
__gdt_install:
	lgdt (gp)
	mov $0x10, %ax
	mov %ax, %ds
	mov %ax, %es
	mov %ax, %fs
	mov %ax, %gs
	mov %ax, %ss
	ljmp $0x08, $flush
	
flush:
	ret

.globl __idt_install
//.extern ip
__idt_install:
	lidt (ip)
	ret

